/*
 * Copyright (c) 2023 Cshoo Org. All Rights Reserved.
 */

package org.cshoo.tattoo.datacenter.api.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author 杨翼
 * @since 1.0
 */
@Data
public class UpdateConfigItemReq {

    @NotNull(message = "id is required")
    @ApiModelProperty(value = "id", example = "12", required = true)
    private Long id;

    @NotBlank(message = "name is required")
    @ApiModelProperty(value = "名称")
    private String name;

    @NotBlank(message = "value is required")
    @ApiModelProperty(value = "值")
    private String value;

    @NotBlank(message = "lang is required")
    @ApiModelProperty(value = "语言")
    private String lang;

    @NotBlank(message = "order is required")
    @ApiModelProperty(value = "顺序")
    private Integer order;

    @ApiModelProperty(value = "描述")
    private String description;

}
